<?php

/**
 * NOTICE OF LICENSE
 *
 * THIS SOURCE FILE IS PART OF EVEBIT'S PRIVATE PROJECT.
 * 
 * DO NOT USE THIS FILE IN OTHER PLACE.
 *
 * @package   App_Sample
 * @author    Cheng Wei <berlios.o@gmail.com>
 * @version   $$Id: GetSortClass.php 130 2011-03-18 03:10:02Z cheng.wei $$
 * @copyright Copyright (c) 2008 Evebit Inc. China (http://www.evebit.com)
 */

/**
 * Get class for sort column (backend gird)
 * 
 * @package   App_Sample
 * @author    Cheng Wei <berlios.o@gmail.com>
 * @version   $$Id: GetSortClass.php 130 2011-03-18 03:10:02Z cheng.wei $$
 */
class Evebit_View_Helper_GetSortClass extends Zend_View_Helper_Abstract {
		
	/**
	 * Get class
	 * 
	 * @param array $sort
	 * @param string $name
	 * @return string
	 */
	function getSortClass($sort,$name){
		if($sort["key"] == $name){
			return "sort-arrow-".$sort["order"];
		}else{
			return "not-sort";
		}
	}	
	
}